<?php
include('conn.php');
session_start();
$goodsname = $_GET["goodsname"];
$price = $_GET['price'];
/*$goods = $_SESSION["goods"];
if($goods[$goodsname]['number']=$goodsname)
{ 	 
 unset($goods[$goodsname]);
}

$_SESSION["goods"] = $goods; //最后存一下购物车的内容*/
$sql="DELETE FROM collection WHERE goodsname='$goodsname'";
$result = mysqli_query($conn,$sql);
header("location:collection.php");
?>